package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.ReportMapper;
import com.authine.cloudpivot.web.api.service.ReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Slf4j
@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    @Override
    public List<Map<String, Object>> serviceType() {
        return reportMapper.serviceType();
    }

    @Override
    public List<Map<String, Object>> opTrend(String dateStr,String department) {
        return reportMapper.opTrend(dateStr, department);
    }

    @Override
    public List<Map<String, Object>> gpTrend(String dateStr,String department) {
        return reportMapper.gpTrend(dateStr, department);
    }

    @Override
    public List<Map<String, Object>> revTrend(String dateStr,String department) {
        return reportMapper.revTrend(dateStr, department);
    }

    @Override
    public List<Map<String, Object>> sgaTrend(String dateStr,String department) {
        return reportMapper.sgaTrend(dateStr, department);
    }

    @Override
    public List<Map<String, Object>> subjectAdditional(String year) {
        return reportMapper.subjectAdditional(year);
    }

    @Override
    public List<Map<String, Object>> subjectLoss(String year) {
        return reportMapper.subjectLoss(year);
    }

    @Override
    public Integer ytgCount(String year) {
        return reportMapper.ytgCount(year);
    }

    @Override
    public Integer xmCount(String year) {
        return reportMapper.xmCount(year);
    }

    @Override
    public Integer xmgbCount(String year) {
        return reportMapper.xmgbCount(year);
    }

    @Override
    public Integer ytgxmCount(String year) {
        return reportMapper.ytgxmCount(year);
    }

    @Override
    public Integer xmxmgbCount(String year) {
        return reportMapper.xmxmgbCount(year);
    }

    @Override
    public Integer ytgxmgbCount(String year) {
        return reportMapper.ytgxmgbCount(year);
    }

    @Override
    public List<Map<String, Object>> subjectCover() {
        return reportMapper.subjectCover();
    }

    @Override
    public List<Map<String, Object>> subjectExecuteRate() {
        return reportMapper.subjectExecuteRate();
    }

    @Override
    public List<Map<String, Object>> subjectExecuteCycle(String id) {
        return reportMapper.subjectExecuteCycle(id);
    }

    @Override
    public List<Map<String, Object>> subjectExecuteCity(String id, String date) {
        return reportMapper.subjectExecuteCity(id,date);
    }

    @Override
    public List<Map<String, Object>> employmentRanking(Date start,Date end) {
        return reportMapper.employmentRanking(start,end);
    }

    @Override
    public List<String> getEmployments(String id) {
        return reportMapper.getEmployments(id);
    }

    @Override
    public List<Map<String, Object>> getBeforYearData(String date,String month,String year) {
        return reportMapper.getBeforYearData(date,month,year);
    }

    @Override
    public List<Map<String, Object>> getNowYearData(String date,String month,String year) {
        return reportMapper.getNowYearData(date,month,year);
    }

    @Override
    public List<Map<String, Object>> getNowYearDataAvgPay(String date,String year) {
        return reportMapper.getNowYearDataAvgPay(date,year);
    }

    @Override
    public List<Map<String, Object>> getBeforYearSumDataLhyg(String date,String year) {
        return reportMapper.getBeforYearSumDataLhyg(date,year);
    }

    @Override
    public List<Map<String, Object>> getNowYearSumDataLhyg(String date,String year) {
        return reportMapper.getNowYearSumDataLhyg(date,year);
    }

    @Override
    public List<Map<String, Object>> projectTaskIssue() {
        return reportMapper.projectTaskIssue();
    }

    @Override
    public List<Map<String, Object>> getXsData(String customerName,String jdName,String start,String end) {
        return reportMapper.getXsData(customerName,jdName,start,end);
    }

    @Override
    public List<String> getRecruitmentGroup() {
        return reportMapper.getRecruitmentGroup();
    }

    @Override
    public Integer getSumDemandFor(String start,String end,String id) {
        return reportMapper.getSumDemandFor(start,end,id);
    }

    @Override
    public List<Map<String, Object>> projectMapDataSum(Date startDate, Date endDate) {
        return reportMapper.projectMapDataSum(startDate,endDate);
    }

    @Override
    public List<Map<String, Object>> projectMapDataProMax(Date startDate, Date endDate) {
        return reportMapper.projectMapDataProMax(startDate,endDate);
    }

    @Override
    public List<Map<String, Object>> projectMapDataCityMax(Date startDate, Date endDate) {
        return reportMapper.projectMapDataCityMax(startDate,endDate);
    }

    @Override
    public List<Map<String, Object>> mapSetting() {
        return reportMapper.mapSetting();
    }

    @Override
    public String getLastGpOpDate() {
        return reportMapper.getLastGpOpDate();
    }

    @Override
    public List<Map<String, Object>> recruitmentXsData(String start, String end) {
        return reportMapper.recruitmentXsData(start,end);
    }

    @Override
    public List<Map<String, Object>> recruitmentWeekDataXxByAscertain(String start, String end, String type) {
        return reportMapper.recruitmentWeekDataXxByAscertain(start,end,type);
    }

    @Override
    public Integer getSumDemandForByAscertain(String jdId,String subjectId,String type) {
        return reportMapper.getSumDemandForByAscertain(jdId,subjectId,type);
    }

    @Override
    public List<Map<String, Object>> areaFinishedByAscertain(String start, String end, String type) {
        return reportMapper.areaFinishedByAscertain(start,end,type);
    }

    @Override
    public List<Map<String, Object>> areaDemandForByAscertain(String start, String end, String type) {
        return reportMapper.areaDemandForByAscertain(start,end,type);
    }

    @Override
    public List<Map<String, Object>> recruitmentWeekDataXxByIndeterminacy(String start, String end, String type) {
        return reportMapper.recruitmentWeekDataXxByIndeterminacy(start,end,type);
    }

    @Override
    public List<Map<String, Object>> areaFinishedByIndeterminacy(String start, String end, String type) {
        return reportMapper.areaFinishedByIndeterminacy(start,end,type);
    }

    @Override
    public List<Map<String, Object>> getXsDataSum(String projectNames, String jobName) {
        return reportMapper.getXsDataSum(projectNames,jobName);
    }

    @Override
    public List<Map<String, Object>> recruitmentWeekDataXxByAscertainSum(String type) {
        return reportMapper.recruitmentWeekDataXxByAscertainSum(type);
    }

    @Override
    public List<Map<String, Object>> areaFinishedByAscertainSum(String type) {
        return reportMapper.areaFinishedByAscertainSum(type);
    }

    @Override
    public List<String> subjectAdditionalDetail(String year, String month, String type) {
        return reportMapper.subjectAdditionalDetail(year,month,type);
    }

    @Override
    public List<String> subjectLossDetail(String year, String month, String type) {
        return reportMapper.subjectLossDetail(year,month,type);
    }

    @Override
    public List<String> getGpOpDepartment(String date) {
        return reportMapper.getGpOpDepartment(date);
    }

}



